#-------------------------------------------------------------------------------
# Name:        Main Module
# Purpose:
#
# Authors:      oscarbailey1, debank.c
#
# Created:     06/03/2013
# Licence:     GNU GPL v3
#-------------------------------------------------------------------------------

def main():
    print "Hi, this is the mechanics project!\nIt is not yet complete..."
    forceNumber = int(raw_input("Enter your desired number of forces: "))
    resultantForce = resultant(forceNumber)
    print "The resultant force is: ", resultantForce

def resultant(number):
    forces = []
    resX = 0
    resY = 0
    count = 1
    while count <= number:
        forces.append(raw_input("Enter horizontal for force number " + str(count) + ": "))
        forces.append(raw_input("Enter vertical for force number " + str(count) + ": "))
        count += 1
    count = 0
    for value in forces:
        if count % 2 == 1:
            resY += int(value)
        else:
            resX += int(value)
        count += 1
    forceVector = [resX,resY]
    return forceVector


if __name__ == '__main__':
    main()

raw_input()
